//
//  JHPersonTableViewCell.m
//  Liberty Voice
//
//  Created by dlios on 15-5-15.
//  Copyright (c) 2015年 ClearLove. All rights reserved.
//

#import "JHPersonTableViewCell.h"


@implementation JHPersonTableViewCell
- (void)dealloc
{
    [_myImage release];
    [_myImage2 release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"F8AA6885-0816-4BEE-BB60-169458953EB6"]];
        [self.contentView addSubview:_myImage];
        
        self.myImage2 = [[UIImageView alloc] init];
        [self.myImage addSubview:_myImage2];
   
    }
    return self;
}
- (void)layoutSubviews
{

    [super layoutSubviews];

    _myImage.frame = CGRectMake(0, 0, self.contentView.frame.size.width - 2,self.contentView.frame.size.height);
    _myImage2.frame = CGRectMake(self.myImage.frame.size.width / 2 - 65, self.myImage.frame.size.height / 2 - 24, self.myImage.frame.size.width - 260, self.myImage.frame.size.height - 29);
    _myImage2.center = _myImage.center;

}
- (void)setPersonal:(JHPersonal *)personal
{
    if (personal != _personal) {
        [_personal release];
        _personal = [personal retain];
    }
    // 给控件赋值
    _myImage2.image = [UIImage imageNamed:(personal.picStr)];
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
